<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var num = prompt('您带了多少钱');
        if (num >= 2000) {
            alert('我请大家吃西餐');
        } else if(num < 2000 && num >= 1500){
            alert('我请大家吃快餐');
        } else if(num < 1500 && num >=1000) {
            alert('我请大家喝饮料');
        } else if(num < 1000 && num >= 500) {
            alert('我请大家吃棒棒糖');
        }else{
            alert('滚蛋！！！！！！！');
        }
    </script>
</head>
<body>
    
</body>
</html>